<template>
  <view class="text-area-wrapper">
    <view class="title">{{title}}</view>
    <textarea class="text-area" :placeholder="placeholder" :disabled="disabled" :value="modelValue" @input="$emit('update:modelValue',$event.detail.value)"></textarea>
  </view>
</template>

<script>
  export default {
    props: {
      title: {
        type: String,
        default: '标题'
      },
      placeholder: {
        type: String,
        default: '请输入内容'
      },
      disabled: {
        type: Boolean,
        default: false
      },
      modelValue: ''
    },
    data() {
      return {
        
      }
    },
    methods: {
      
    }
  }
</script>

<style scoped lang="scss">
  .text-area-wrapper {
    color: #222;
    font-size: 30rpx;
    .title {
      color: #666;
      padding: 24rpx 0;
      border-bottom: 1px solid #eee;
    }
    .text-area {
      width: 100%;
      box-sizing: border-box;
      padding: 24rpx 0;
      height: 160rpx;
    }
  }
  
</style>